package com.dy.design_pattern_study.command_pattern.dome3.impl;

import com.dy.design_pattern_study.command_pattern.dome2.Barbecuer;
import com.dy.design_pattern_study.command_pattern.dome3.Command;
import com.dy.design_pattern_study.command_pattern.dome3.Receiver;

/**
 * @CreateBy zhangdingyi
 * @Date 2023-04-19
 * @Content 具体命令
 * 将一个接收者对象绑定于一个动作，调用接收者相应的操作，以实现Execute
 */
public class ConcreteCommand extends Command {
    public ConcreteCommand(Receiver receiver) {
        super(receiver);
    }

    @Override
    public void excuteCommand() {
        receiver.action();
    }
}
